package cn.dengta.webapp.user.entity.activity;

import java.math.BigDecimal;
import java.util.Date;

import cn.dengta.webapp.base.entity.TimeBasedEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@TableName("act_bag_recharge_log")
public class ActBagRechargeLog extends TimeBasedEntity {

	/** 用户ID */
	private Long userId;
	/** 充值记录ID */
	private Long rechargeId;
	/** 充值金额 */
	private BigDecimal amount;

	public static final ActBagRechargeLog of(Long userId, Long rechargeId, BigDecimal amount) {
		ActBagRechargeLog bagUserLog = new ActBagRechargeLog();
		bagUserLog.setUserId(userId);
		bagUserLog.setRechargeId(rechargeId);
		bagUserLog.setAmount(amount);
		bagUserLog.initTime(new Date());
		return bagUserLog;
	}

	public static final String RECHARGE_ID = "recharge_id";

}
